package com.training.java.core.statics;

public class Car {

	private String make;
	private String model;
	private int vinNumber;

	private static int numberOfCarsCreated;

	public Car(String make, String model, int vinNumber) {
		this.make = make;
		this.model = model;
		this.vinNumber = vinNumber;

		numberOfCarsCreated++;
	}

	public static int getnumberOfCarsCreated() {
		return numberOfCarsCreated;

	}

	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}

	public int getVinNumber() {
		return vinNumber;
	}

}
